<?php /* Smarty version Smarty-3.1.6, created on 2012-12-01 13:22:24
         compiled from "./admin/Tpl\class\add.html" */ ?>
<?php /*%%SmartyHeaderCode:2271050b99354ee29d5-13742753%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3a64e3a6e942ae7bc27a4a54dca0d179f6fe1143' => 
    array (
      0 => './admin/Tpl\\class\\add.html',
      1 => 1354339337,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2271050b99354ee29d5-13742753',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_50b993550782d',
  'variables' => 
  array (
    'class' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50b993550782d')) {function content_50b993550782d($_smarty_tpl) {?><link href="/assets/css/admin.css" rel="stylesheet" type="text/css"/>
<link href="/assets/css/dialog.css" rel="stylesheet" type="text/css" />

<form action="/admin.php?a=add&m=class" method="post" name="myform" id="myform" enctype="multipart/form-data" style="margin-top:10px;">
  <div class="pad-10">
    <div class="col-tab">
      <ul class="tabBut cu-li">
        <li id="tab_setting_1" class="on" onclick="SwapTab('setting','on','',3,1);">添加分类</li>
      </ul>
      <div id="div_setting_1" class="contentList pad-10">
        <table width="100%" cellpadding="2" cellspacing="1" class="table_form">
          <tbody>
            <tr>
              <th></th>
              <td></td>
            </tr>
            <tr>
              <th>上级分类：</th>
              <td><select name="p_id" style="width:150px;">
                  <option value="0" selected="selected">--顶级分类--</option>
                <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['class']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
                 <option ><?php echo $_smarty_tpl->tpl_vars['item']->value['className'];?>
</option>
                <?php } ?>
                </select>
             </td>
            </tr>
            <tr>
              <th width="100">分类名称 :</th>
              <td><input type="text" name="className" id="name" rel="title_color" class="input-text iColorPicker" size="60" value="" style="color:;">
                
                <input type="hidden" value="" name="color" id="title_color"></td>
            </tr>
            <tr>
              <th width="100">排序值 :</th>
              <td><input type="text" name="sort" id="ordid" class="input-text" size="4" value="0" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"></td>
            </tr>
            <tr>
              <th>首页显示 :</th>
              <td><input type="radio" name="is_hots" id="is_hots" class="radio_style" value="1" checked="checked">
                &nbsp;是&nbsp;&nbsp;&nbsp;
                <input type="radio" name="is_hots" id="is_hots" class="radio_style" value="0">
                &nbsp;否 </td>
            </tr>
            <tr>
              <th>审核状态 :</th>
              <td><input type="radio" name="status" id="status" class="radio_style" value="1" checked="checked">
                &nbsp;是&nbsp;&nbsp;&nbsp;
                <input type="radio" name="status" id="status" class="radio_style" value="0">
                &nbsp;否 </td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="bk15"></div>
      <div class="btn">
        <input type="submit" value="提交" name="dosubmit" class="button" id="dosubmit">
      </div>
    </div>
  </div>
</form>
<?php }} ?>